﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace BusinessLogic
{
    [AttributeUsage(System.AttributeTargets.All, AllowMultiple = true)]    
    class SQLParameterAttribute : Attribute
    {
        private string _parameterName, _columnName, _storedProcedure;
        private SQLDoWhatEnum _sqlDoWhat;
        private bool _isClass = false;
        private Type _typeOf;

        public bool IsClass
        {
            get { return _isClass; }
            set { _isClass = value; }
        }

        public Type TypeOf
        {
            get { return _typeOf; }
            set { _typeOf = value; }
        }

        public string ParameterName
        {
            get { return _parameterName; }
            set { _parameterName = value; }
        }

        public string ColumnName
        {
            get { return _columnName; }
            set { _columnName = value; }
        }

        public SQLDoWhatEnum SQLDoWhat
        {
            get { return _sqlDoWhat; }
            set { _sqlDoWhat = value; }
        }

        public string StoredProcedure
        {
            get { return _storedProcedure; }
            set { _storedProcedure = value; }
        }
    }
}